<template>
	<view class="footer-button-container">
		<view class="footer-button">
			<view @click="standard" catch:tap="goServicePage" class="btn-item">
				<image class="btn btn-charge" src="https://cs.midea.com/c-css/front/wechat/miniprogram-midea-one/appointment/icon-charge.png"></image>
				<view class="btn-name">收费标准</view>
			</view>
			<view catch:tap="goServiceStandard" class="btn-item">
				<image class="btn" src="https://cs.midea.com/c-css/front/wechat/miniprogram-midea-one/appointment/icon-service-standard.png"></image>
				<view class="btn-name">服务标准</view>
			</view>
			<m-button bind:on-click="onSubmit" bind:on-disabled="onDisabled" class="btn-item btn-submit"  type="primary">提交</m-button>
		</view>
	</view>
</template>

<script>
	export default {
		props:['installStandard'],
		name:"footer-button",
		data() {
			return {
				
			};
		},
		methods:{
			standard(){
				if(this.installStandard==="install"){
					uni.navigateTo({
						url: "/pages/index/afterSales/install/installStandard/installStandard"
					});
				}
				if(this.installStandard==="maintenance"){
					uni.navigateTo({
						url: "/pages/index/afterSales/maintenance/maintenanceStandard/maintenanceStandard"
					});
				}
				if(this.installStandard==="relocation"){
					uni.navigateTo({
						url: "/pages/index/afterSales/relocation/relocationStandard/relocationStandard"
					});
				}
			}
			
		}
	}
</script>

<style>
	.footer-button-container {
	  background: #fff;
	 
	  padding-bottom: env(safe-area-inset-bottom);
	  position: fixed;
	  bottom: 0;
	  left: 0;
	  width: 100%;
	  z-index: 5;
	}
	.footer-button {
	  align-items: center;
	  background: #fff;
	  box-shadow: 0 0 0 0 var(--line-divider-color--);
	  display: -webkit-flex;
	  display: flex;
	  height: 65px;
	  padding-right: 12px;
	  position: relative;
	}
	.footer-button::after {
	  background: var(--line-divider-color--);
	  content: '';
	  height: 1px;
	  left: 0;
	  position: absolute;
	  top: 0;
	  transform: scaleY(0.5);
	  width: 100%;
	}
	.userinfo-btn {
	  background: var(--brand-main-color--);
	  border: 1px solid var(--brand-main-color--);
	  border-radius: 24px;
	  box-sizing: border-box;
	  color: #fff;
	  font-size: 16px;
	  height: 50px;
	  line-height: 50px;
	  margin-left: 12px;
	  text-align: center;
	  width: 100%;
	}
	.userinfo-btn.disabled {
	  background: var(--brand-main-color-disabled--);
	  border-color: #fff;
	}
	.btn-item {
	  margin-left: 16px;
	  text-align: center;
	}
	.btn-submit {
	  width: 100%;
	  color: white;
	  border-radius: 25px;
	  height: 45px;
	  font-weight: bold;
	  background-color: cornflowerblue;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	}
	.btn {
	  display: block;
	  height: 24px;
	  margin: 0 auto;
	  width: 24px;
	}
	.btn-name {
	  color: var(--text-main-color--);
	  font-family:
		PingFangSC-Regular,
		PingFang SC,
		sans-serif;
	  font-size: 10px;
	  font-weight: 400;
	  line-height: 14px;
	  white-space: nowrap;
	}
</style>